﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.SqlClient;

namespace Agresso.Interface.Layer.Domain
{
    public class DaDeskPort
    {
        public long DaDeskPort_id;
        public string PortCode = "";
        public string AgrPortCode = "";

        public DaDeskPort() { }
        public DaDeskPort(SqlDataReader rd)
        {
            DaDeskPort_id = Convert.ToInt32(rd["DaDeskPort_id"]);
            PortCode = rd["PortCode"] is DBNull ? PortCode : rd["PortCode"].ToString();
            AgrPortCode = rd["AgrPortCode"] is DBNull ? AgrPortCode : rd["AgrPortCode"].ToString();
        }
    }
}
